// pages/group/group.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [
        {
            id: 1,
            image: "https://img.js.design/assets/img/673af1b1ac135d9125534021.png#e90950e4acdd41035094c0ec85764efe",
            time: "2025-03-14",
            title: "地藏王圣号共修",
            admin: "可乐",
            homework: "地藏王菩萨圣号",
            numPeople: 1732,
            repetitions: 15615
          },
          {
            id: 2,
            image: "https://img.js.design/assets/img/673afa8c40b7d89a552d7ac2.png#9803ee6cc95b58be4efd390888e356dd",
            time: "2025-03-14",
            title: "百亿遍地黄财神心咒祈福",
            admin: "可乐",
            homework: "地藏王菩萨圣号",
            numPeople: 1732,
            repetitions: 15615
          },
          {
            id: 3,
            image: "https://img.js.design/assets/img/673afa99e0697a51fc6af55a.png#816f73dc1f2abe9a1cad19604fb8bf89",
            time: "2025-03-14",
            title: "金刚铠甲咒共修",
            admin: "",
            homework: "地藏王菩萨圣号",
            numPeople: 1732,
            repetitions: 15615
          },
          {
            id: 4,
            image: "https://img.js.design/assets/img/673afaa5ceb6bac726cb245d.png#6a988d815572e8968df551489a9802f0",
            time: "2025-03-14",
            title: "地藏王圣号共修",
            admin: "",
            homework: "地藏王菩萨圣号",
            numPeople: 1732,
            repetitions: 15615
          },
    ]
  },
  onClick (e) {
    const {id, title, image} = e.currentTarget.dataset
    wx.navigateTo({
        url: `/pages/group/groupDetail/detail?id=${id}&title=${title}&img=${image}`
      });
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})